import Vue from "vue";
import VueRouter from "vue-router";


Vue.use(VueRouter); //将vueRouter注入到Vue每一个子组件里面

//路由配置
//是一个数组
//数组中是对象,由一个path映射一个component

//以后配置路由,基本上只需要修改routes就可以了

//配置路由三部曲:
//1.创建路由页面
//2.配置routes
//3.写上router-view
const routes = [
  
];

const router = new VueRouter({
  // mode: "abstract",
  routes,
});

export default router;
